<?php


namespace app\pc\controller\base;


use app\BaseController;
use app\pc\service\base\StudentPractiseService;
use think\response\Json;

class StudentPractise extends BaseController
{
    /**
     * 创建练习
     * @param StudentPractiseService $practiseService
     * @return Json
     */
    public function create(StudentPractiseService $practiseService):Json
    {
        return $practiseService->save(request()->param());
    }

    /**
     * 更新练习
     * @param StudentPractiseService $practiseService
     * @return Json
     */
    public function update(StudentPractiseService $practiseService):Json
    {
        return $practiseService->update(request()->param());
    }

    /**
     * 详情
     * @param StudentPractiseService $practiseService
     * @return Json
     */
    public function details(StudentPractiseService $practiseService):Json
    {
        return $practiseService->details(request()->param());
    }
}